#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Nov  7 11:15:26 2021

@author: Aiping
"""






















# import socket               # Import socket module

# s = socket.socket() 
# print('creat a new socket')        # Create a socket object
# host = socket.gethostname() # Get local machine name
# port = 12345                # Reserve a port for your service.
# s.bind((host, port))        # Bind to the port

# s.listen()                 # Now wait for client connection.
# print('waiting for the connection...')
# while True:
#     c, addr = s.accept()     # Establish connection with client.
#     print ('Got connection from', addr)
#     c.send(bytes('Thank you for connecting','utf-8'))
#     c.close()                # Close the connection